<ion-header>
  	<ion-navbar color="primary">
    	<ion-title>忘记密码</ion-title>
  	</ion-navbar>
</ion-header>


<ion-content>
	<ion-list margin-top inset>
	  	<ion-item padding-left padding-right>
	  		<ion-icon name="ios-phone-portrait-outline" item-start></ion-icon>
	    	<ion-input [(ngModel)]="user.username" type="text" placeholder="请输入手机号"></ion-input>
	  	</ion-item>
	  	<ion-item padding-left padding-right>
	  		<ion-icon name="ios-mail-outline" item-start></ion-icon>
	    	<ion-input [(ngModel)]="user.smscode" type="text" 
			maxlength="6"
	    	placeholder="请输入验证码"></ion-input>
	    	<button ion-button round item-end
	    	[disabled]="sms.ok"
	    	(click)="sendsms()">{{sms.text}}</button>
	  	</ion-item>
	  	<ion-item padding-left padding-right>
	  		<ion-icon name="ios-lock-outline" item-start></ion-icon>
	    	<ion-input [(ngModel)]="user.password" type="password" placeholder="请输入新密码"></ion-input>
	  	</ion-item>
	  	<ion-item padding-left padding-right>
	  		<ion-icon name="ios-lock-outline" item-start></ion-icon>
	    	<ion-input [(ngModel)]="user.oldpassword" type="password" placeholder="请再次输入密码"></ion-input>
	  	</ion-item>
	  	<ion-item no-lines clear></ion-item>
	</ion-list>

    <div padding class="btn">
	  	<button ion-button full
	  	(click)="forget()">提  交</button>
	</div>
</ion-content>
